@extends('admin.formLayout')
@section('title','网站设置')
@section('barName','网站设置')
@section('content')
    <form class="layui-form" action="{{route('admin.setting.post')}}" method="post">
        {{csrf_field()}}
<div class="layui-tab">
    <ul class="layui-tab-title">
        <li class="layui-this">网站设置</li>
        <li>SEO设置</li>
        <li>联系我们</li>

    </ul>

    <div class="layui-tab-content">

        <div class="layui-tab-item layui-show">
            <div class="layui-form-item">
                <label class="layui-form-label">网站名称</label>
                <div class="layui-input-block">
                    <input type="text" name="site_name"
                           value="{{$setting['site_name']}}"
                           autocomplete="off" placeholder="网站名称" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-tab-item">
            <div class="layui-form-item">
                <label class="layui-form-label">网站关键词</label>
                <div class="layui-input-block">
                    <input type="text" name="keywords"
                           value="{{$setting['keywords']}}"
                           autocomplete="off" placeholder="网站关键词" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">网站描述</label>
                <div class="layui-input-block">
                    <textarea name="description" placeholder="网站描述，大概200字左右" class="layui-textarea">{{$setting['description']}}</textarea>
                    </div>
            </div>
        </div>
        <div class="layui-tab-item">
            <div class="layui-form-item">
                <label class="layui-form-label">联系邮箱</label>
                <div class="layui-input-block">
                    <input type="text" name="email"
                           value="{{$setting['email']}}"
                           autocomplete="off" placeholder="输入联系邮箱" lay-verify="email" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系地址</label>
                <div class="layui-input-block">
                    <input type="text" name="address"
                           value="{{$setting['address']}}"
                           autocomplete="off" placeholder="联系地址" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">介绍</label>
                <div class="layui-input-block">
                    <textarea name="content" placeholder="用于介绍" class="layui-textarea">{{$setting['content']}}</textarea>
                </div>
            </div>

        </div>

    </div>

</div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="form">提交保存</button>
            </div>
        </div>
    </form>

<script>
    layui.use('element', function() {
        var $ = layui.jquery
            , element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块

    })
</script>
@endsection